package com.woohua.demo.thread;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @version 1.0
 * @author: woo hua
 * @DATE 2022/7/21 9:17
 * @description:线程池配置属性类
 */
@Data
@Component
@ConfigurationProperties(prefix = "custom.task.pool")
public class TaskThreadPoolConfig {

    private int corePoolSize;

    private int maxPoolSize;

    private int keepAliveSeconds;

    private int queueCapacity;
}
